package com.dcm360.report.system.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/ligh")
public class LoginController {


    @GetMapping("/toLayout")
    public String toLayout(HttpServletRequest request, String username, String password){

//        request.getPa
        //Object username = request.getAttribute("username");
        if("admin".equals(username)){
            return "/ligh/layout.html";
        } else {
            return "/test.html";
        }

    }



}
